package utils

import (
	"os"
	"os/exec"
	"path/filepath"
)

var relativePath string

func pathInit() {
	path, _ := exec.LookPath(os.Args[0])
	fileFullPath, _ := filepath.Abs(path)
	relativePath = filepath.Dir(fileFullPath)
}

func GetWorkPath() string {
	return relativePath
}
